
from .api_mysql import ApiMysqlclass

from flask import Flask, request

from . import app_login_test


@app_login_test.route('/login_bak', methods = ['POST'])

def openid():

    phone = request.form.get('phone')

    pass_word = request.form.get('pass_word')

    return ApiMysqlclass().post_return(phone, pass_word)


@app_login_test.route('/login_test', methods = ['GET'])

def login_test():

    token = request.args.get('token')

    return ApiMysqlclass().get_return(token)


if __name__ == '__main__':
    
    app.run(debug = True)
    